package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class ContextuallyTypedRowValueExpressionList {

    private int beginIndex;
    private int endIndex;
    private List<ContextuallyTypedRowValueExpression> contextuallyTypedRowValueExpressionList;

    public ContextuallyTypedRowValueExpressionList(int beginIndex,
                                                   int endIndex,
                                                   List<ContextuallyTypedRowValueExpression> contextuallyTypedRowValueExpressionList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.contextuallyTypedRowValueExpressionList = contextuallyTypedRowValueExpressionList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return contextuallyTypedRowValueExpressionList.size();
    }

    public ContextuallyTypedRowValueExpression get(int index) {
        return contextuallyTypedRowValueExpressionList.get(index);
    }

}
